package com.kaifa.mybatis.bean;

import org.apache.ibatis.type.Alias;

//使用注解为某个类型指定新别名
@Alias("ub")
public class UserBean {
    private Integer uid;
    private String username;
    private String password;
    private String iphone;
    private Integer sex;
    private Integer age;
    private Integer roleId;

    public UserBean() {
        super();
    }

    public UserBean(Integer uid, String username, String password, String iphone, Integer sex, Integer age, Integer roleId) {
        this.uid = uid;
        this.username = username;
        this.password = password;
        this.iphone = iphone;
        this.sex = sex;
        this.age = age;
        this.roleId = roleId;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIphone() {
        return iphone;
    }

    public void setIphone(String iphone) {
        this.iphone = iphone;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "uid=" + uid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", iphone='" + iphone + '\'' +
                ", sex=" + sex +
                ", age=" + age +
                ", roleId=" + roleId +
                '}';
    }

}
